-
Notifications
You must be signed in to change notification settings - Fork 3k
check for new phx.new version #6012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fff7a5e
to
b4c0066
Compare
Should we do something about the warnings on Erlang < 25?
|
f110ff0
to
cc1223b
Compare
installer/mix.exs
Outdated
@@ -61,6 +61,7 @@ defmodule Phx.New.MixProject do | |||
|
|||
def deps do | |||
[ | |||
{:hex_core, "~> 0.11.0"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Archives cannot include dependencies afaik :(
We will need to request against Hex API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reworked to use https://hex.pm/api/packages/phoenix instead. But as we need to parse JSON without a dependency, the whole check is gated behind an Elixir version check now.
@SteffenDE should we check before we do anything, to make sure they are generating an app in the latest version? |
cc1223b
to
f828747
Compare
I don't know who said it, maybe Chris, but initial feedback was that it should not block the task from proceeding. |
Co-authored-by: José Valim <[email protected]>
Adds a warning message at the end of the phx.new output if a newer version of the installer is available: